home *** CD-ROM | disk | FTP | other *** search
- In article <747.6586T681T16@mbox3.swipnet.se> patrik.nilsson@mbox3.swipnet.se (Patrik Nilsson) writes:
- > void __saveds
- > dotcpline( int process )
- > {
- > int i;
- > ...
- > }
- >
- > What does "__saveds" mean?
- >
- > Are there anything to think about when using "CreateNewProcTags"?
- > I have nine processes using the same code, but it will only fail
- > to execute sometimes.
- >
- > (I have seen others using "__saveds", are there other usefull
- > "__saveds"?)
- >
- > What are such tag as "__saveds" called?
-
- __saveds is a keyword in SAS/C which tells the compiler to load A4 with
- the value of the NEAR data pointer on entry to the function.
-
- DICE uses __geta4, other compilers use other keywords.
-
- Yes, this is something that needs to be used *sometimes* with any function
- that sets up part of your code as a separate task. If part of your program
- will be running under a different task than the main one, you need to make
- certain that the A4 pointer is loaded properly, or your code running under
- the different task may not be able to access any of your program's global
- data.
-
- --
- Jim Cooper | World: jamie@interpath.com | "I-Net 225 is my life... or at
- | BIX: jcooper | least it seems like it!" :-)
-
- Definition of Perfection: Dysfunctionally Challenged.
-